package com.cskaoyan.controller.wx;


import com.cskaoyan.bean.wx.WxBaseRespVo;
import com.cskaoyan.bean.wx.WxTestBean;
import com.cskaoyan.service.wx.HomeService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("wx/home/")
public class WxHomeController {

    @Autowired
    HomeService homeService;

    @RequestMapping("index")
    public WxBaseRespVo homeIndex(){
        WxTestBean wxTestBean = homeService.selectWxTestBean();
        return WxBaseRespVo.ok(wxTestBean);
    }
}
